package cn.taobaoke.restful.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;


/**
 * @author yangzuo
 * @since 2017-03-20
 */
@Setter
@Getter
@ToString
@Table(name = "tb_agent_group_relation")
@Entity
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AgentGroupRelation implements Serializable {

    @Id
    @GeneratedValue
    private Long Id;

    @Column
    private Long agentId;

    @Column
    private Long groupId;

//    @Column
//    private Long domainId;
}
